package com.atguigu05.method_more._03valuetransfer;

/**
 * @author BuTang
 * @create 21:42
 */
public class ValueTransferTest {
    public static void main(String[] args) {
        //基本数据类型
        int m = 10;
        int n = m;
        System.out.println(m + "," + n);
        //2引用数据类型
        //2.1数组
        int[] arr = {1, 2, 3};
        int[] arr2 = arr;
        System.out.println(arr2[0]);
        //2.2对象
        Order order1 = new Order();
        order1.orderId = 1001;

        Order order2 = order1;
        order2.orderId = 1002;
        System.out.println(order1.orderId);
    }
}
class Order{
        int orderId;
    }


